import Vue from 'vue';
import VueRouter from 'vue-router';
import Build from './pages/build/index.vue';
import Recorder from './pages/recorder/index.vue';
import Register from './pages/register/index.vue';
import Login from './pages/login/index.vue';
import Mine from './pages/mine/index.vue';
Vue.use(VueRouter);
const routes = [
    { path: '/build', component: Build },
    { path: '/recorder', component: Recorder },
    { path: '/register', component: Register },
    { path: '/login', component: Login },
    { path: '/mine', component: Mine},
];
  
  // 3. 创建 router 实例，然后传 `routes` 配置
  // 你还可以传别的配置参数, 不过先这么简单着吧。
const router = new VueRouter({
    routes // (缩写) 相当于 routes: routes
});

export default router;